package com.qf.day12.generic;

public class Student extends Person{

    private Double score;

    public Student() {
    }

    public Student(String name, Double score) {
        super(name);
        this.score = score;
    }

    public Double getScore() {
        return score;
    }

    public void setScore(Double score) {
        this.score = score;
    }

    @Override
    public String toString() {
        return "Student{" +
                "score=" + score +
                "} " + super.toString();
    }
}
